<?php
include("../include/config.inc.php");
include("../user/userlogincheck.php");

$sql="select * from ".tableprefix."store where store_state='1' and member_id=$userid";
$result=$db->query($sql);
$row=$db->fetch_array($result);
$db->free_result($result);
$grade_id=$row["grade_id"];
if($grade_id=='2'){
$temp_store_credit='诚信商户';
}elseif($grade_id=='3'){
$temp_store_credit='特约商户';
}else{
$temp_store_credit='普通商户';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>商家首页 - 订戏会</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=9,Chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="stylesheet" type="text/css" href="../css/public.css">
<link rel="stylesheet" type="text/css" href="../css/user.css">
<script type="text/javascript" src="../js/clientwidth.js"></script>
</head>

<body>
<section class="container">
        <div class="personal-head">
            <a href="../store/index.php?id=<?php echo $row["store_id"];?>"><img alt="商家LOGO" src="<?php if($row["store_label"]==''){echo "../images/storenav_01.jpg";}else{echo "../".$row['store_label'];}?>"></a>
            <div class="p-head-info">
                <p class="p-nickname"><?php echo $row["store_name"];?></p>
                <p class="p-platform"><?php echo $row["store_phone"];?><span><?php echo $temp_store_credit;?></span></p>
            </div>
        </div>
		
        <div class="personal-list" style="margin-top:0px;">
            <ul>
                <!--<a href="address.php">
				<li>
                    <em class="p-addresses"></em>
					<p>收货地址</p>
					<b class="right"><i class="right-arrow1"></i><i class="right-arrow2"></i></b>
                </li>
				</a>-->
				<a href="mynews.php">
				<li>
                    <em class="p-addresses"></em>
					<p>我发布的资讯</p>
					<b class="right"><i class="right-arrow1"></i><i class="right-arrow2"></i></b>
                </li>
				</a>
				<a href="mygoods.php">
				<li>
                    <em class="p-addresses"></em>
					<p>我发布的演出</p>
					<b class="right"><i class="right-arrow1"></i><i class="right-arrow2"></i></b>
                </li>
				</a>
				<a href="myorder.php">
				<li>
                    <em class="p-addresses"></em>
					<p>我的订单</p>
					<b class="right"><i class="right-arrow1"></i><i class="right-arrow2"></i></b>
                </li>
				</a>
				<a href="mywallet.php">
				<li>
                    <em class="p-addresses"></em>
					<p>我的钱包</p>
					<b class="right"><i class="right-arrow1"></i><i class="right-arrow2"></i></b>
                </li>
				</a>
            </ul>
        </div>
		
		<div class="personal-list">
            <ul>
				<a href="index.php">
                <li>
                    <em class="p-setting"></em>
					<p>个人中心</p>
					<b class="right"><i class="right-arrow1"></i><i class="right-arrow2"></i></b>
                </li>
				</a>
            </ul>
        </div>		
        <div class="personal-space p-space-2"></div>
    </section>
	<div class="nav_guide">
	<ul>
		<a href="loginout.php" style="color:#FF0000;"><li class="nobg center">退出登陆</li></a>
	</ul>
</div>
<div id="bottom"></div>

<footer id="bar-fixed">
	<a href="../" class="tab-item"><i class="icon-tabbar bar-home"></i>首页</a>
	<a href="../category.php" class="tab-item"><i class="icon-tabbar bar-message"></i>分类</a>
	<a href="../publish/" class="tab-item"><i class="icon-tabbar bar-publish"></i>发布</a>	
	<a href="../user/" class="tab-item active"><i class="icon-tabbar bar-user2"></i>我</a>
</footer>
<script>
if (document.body.clientWidth > 640) {
	$('body').css({
		width: 640,
		margin: '0 auto',
	});
}
</script>
</body>
</html>
<?php
$db->close();
exit;
?>